package com.nbcio.workflow.domain.bo;

import com.nbcio.common.mybatis.core.domain.BaseEntity;
import com.nbcio.workflow.domain.WfNform;
import com.nbcio.common.core.validate.AddGroup;
import com.nbcio.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 设计器单业务对象 wf_nform
 *
 * @author nbacheng
 * @date 2025-04-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = WfNform.class, reverseConvertGenerate = false)
public class WfNformBo extends BaseEntity {

    /**
     * 表单ID
     */
    @NotNull(message = "表单ID不能为空", groups = { EditGroup.class })
    private Long formId;

    /**
     * 表单名称
     */
            @NotBlank(message = "表单名称不能为空", groups = { AddGroup.class, EditGroup.class })
        private String formName;
    /**
     * 表单描述
     */
            @NotBlank(message = "表单描述不能为空", groups = { AddGroup.class, EditGroup.class })
        private String formDesc;
    /**
     * 表单内容
     */
            @NotBlank(message = "表单内容不能为空", groups = { AddGroup.class, EditGroup.class })
        private String formContent;
}
